package com.train.forum.exception;

import lombok.Data;

/***
 * @author wangsen
 * @date 2024/1/10
 **/
@Data
public class BusinessException extends RuntimeException{


    /**
     * 状态码
     */
    public int code;

    /**
     * 错误描述信息
     */
    public String msg;

    public BusinessException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
